#include "debug_returnbook.h"
#include "ui_debug_returnbook.h"
#include "bookstore.h"

using namespace bookstore;

debug_returnBook::debug_returnBook(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::debug_returnBook) {
    ui->setupUi(this);
}

debug_returnBook::~debug_returnBook() {
    delete ui;
}

void debug_returnBook::on_pushButton_clicked() {

    QString str1 = ui->lineEdit->text();
    int record_id = str1.toInt();

    returnBook(record_id);

}

void debug_returnBook::on_pushButton_2_clicked() {

    QString str1 = ui->lineEdit->text();
    int record_id = str1.toInt();

    reborrow(record_id);

}
